package com.xm.export.excel;

import com.alibaba.fastjson.JSONObject;
import com.xm.export.excel.converter.Converter;
import lombok.Data;

import java.util.List;

@Data
public class Field {
    private String name;
    private List<Converter> converterList;

    public void invoke(JSONObject target) {
        converterList.forEach(e -> target.put(name, e.convert(target)));
    }
}
